import app from './modules/app.js'
import error from './modules/error.js'
import user from './modules/user.js'
import configGroup from './modules/config_group.js'
import config from './modules/config.js'
import source from './modules/source.js'
import auth from './modules/auth.js'
import role from './modules/role.js'
import menu from './modules/menu.js'
import api from './modules/api.js'
import userLog from './modules/user_log.js'

import {
  createStore
} from 'vuex'

// todo ssr
const store = createStore({
  modules: {
    app,
    error,
    user,
    configGroup,
    config,
    source,
    auth,
    role,
    menu,
    api,
    userLog
  },
  plugins: []
})


export default store